// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import store from "./store";
import filters from "./filter/index";
import VueAwesomeSwiper from "vue-awesome-swiper";
// import VueQuillEditor from 'vue-quill-editor'
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import App from "./App";
import router from "./router";
import "styles/reset.css";
import "styles/border.css";
import "styles/iconfont.css";
import "styles/animate.css";

Object.keys(filters).forEach(v => Vue.filter(v, filters[v]));
var EventBus = new Vue();

Object.defineProperties(Vue.prototype, {
  $bus: {
    get: function() {
      return EventBus;
    }
  }
});
// Vue.filter(readmore,function)
Vue.config.productionTip = false;
import "swiper/dist/css/swiper.css";
Vue.use(VueAwesomeSwiper /* { default global options } */);
// Vue.component('tinymce', tinymce)
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: {
    App
  },
  render: h => h(App),
  template: "<App/>"
});
